/**   
 * @Title: City.java
 * @Package com.cityoneyes.bean
 * @Description: TODO
 * @author Rick
 * @date 2011-7-31 下午23:26:32
 * @version V1.0   
 */
package com.cityoneyes.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @ClassName: City
 * @Description: 城市实体BEAN
 * @author Rick
 * @date 2011-7-31 下午11:25:33
 */
@Entity
@Table(name="e_city")
public class City  implements Serializable{
	
	private static final long serialVersionUID = 3940071790303782941L;

	@Id 
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="id")
	private int id;
	
	@Column(name="code")
	private String code;
	
	@Column(name="name")
	private String name;
	
	@Column(name="order_index")
	private short order_index;
	
	@Column(name="pic")
	private String pic;
	
	@Column(name="spell")
	private String spell;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public short getOrder_index() {
		return order_index;
	}
	public void setOrder_index(short order_index) {
		this.order_index = order_index;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getPic() {
		return pic;
	}
	public void setPic(String pic) {
		this.pic = pic;
	}
	public String getSpell() {
		return spell;
	}
	public void setSpell(String spell) {
		this.spell = spell;
	}
}
